]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
grabHelper: Drop seat state check after grab
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Dec 2025 13:35:21 +0000 (14:35 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Jan 2026 16:28:44 +0000 (16:28 +0000)
Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>

js/ui/grabHelper.js

index 9212c168442334dd71f4326220c7ba8c012a78e8..0e287d018f1ff2f37cde910c87b6f0b295b53051 100644 (file)
@@ -154,11 +154,6 @@ export class GrabHelper {
         const firstGrab = this._modalCount === 0;
         if (firstGrab) {
             const grab = Main.pushModal(this._owner, this._modalParams);
-            if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
-                Main.popModal(grab);
-                return false;
-            }
-
             this._grab = grab;
             this._clickGesture = new Clutter.ClickGesture();
             this._clickGesture.connect('recognize', () => {